test_accessor_sources = [
  '../../main.cpp',
  'test_accessor.cpp',
]

test_accessor_abi_sources = [
  '../../main.cpp',
  'test_accessor_abi.cpp',
]

test_accessor = executable(
  'test_accessor',
  test_accessor_sources,
  include_directories: [
    include_directories('.'),
    include_directories('../../..'),
    include_directories('../../../drivers/accessor'),
    include_directories('../../../drivers/accessor/accessor'),
    include_directories('../../../drivers/internal'),
    include_directories('../../../include'),
    include_directories('../../../gen'),
  ],
  dependencies: [
    gtest_dep,
    test_utilities_dep,
    test_utils_dep,
    libmcpp_deps,
    internal_dep,
    # accessor_dep,
  ],
  cpp_args: ['-DUNIT_TEST'],
  install: false,
  link_whole: [accessor_static_lib],
)

test_accessor_abi = executable(
  'test_accessor_abi',
  test_accessor_abi_sources,
  include_directories: [
    include_directories('.'),
    include_directories('../../..'),
    include_directories('../../../drivers/accessor'),
    include_directories('../../../drivers/accessor/accessor'),
    include_directories('../../../drivers/internal'),
    include_directories('../../../include'),
    include_directories('../../../gen'),
  ],
  dependencies: [
    gtest_dep,
    test_utilities_dep,
    test_utils_dep,
    libmcpp_deps,
    test_utils_dep,
    internal_dep,
    # accessor_dep,
  ],
  cpp_args: ['-DUNIT_TEST'],
  install: false,
  link_whole: [accessor_static_lib],
)

test('test_accessor', test_accessor, timeout: 300, suite: 'accessor')
test('test_accessor_abi', test_accessor_abi, timeout: 300, suite: 'accessor')